package Uteis;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;


public class FabricaDeConexoes {

	public static Connection getConnection() throws SQLException{
		try {
			Class.forName("org.hsqldb.jdbcDriver");
			return DriverManager.getConnection("jdbc:hsqldb:hsql://localhost:59999/biblioteca","sa","");

		} catch (ClassNotFoundException e) {
			throw new SQLException(e.getMessage());
		}
	}

}
